package com.example.api.dao;

import com.example.api.model.entity.AdminRole;
import com.example.api.model.entity.Role;

import java.util.List;

public interface AdminRoleDao {

    int deleteByPrimaryKey(Integer id);

    int insert(AdminRole record);

    int insertSelective(AdminRole record);

    AdminRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminRole record);

    int updateByPrimaryKey(AdminRole record);

    List<Role> selectByRoleId(Integer roleId);

    int deleteByAid(Integer aid);

    int insertAdminRole(Integer aid, Integer[] rids);

}